﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using Skyworth.CRM.Service.Entity;

namespace Skyworth.CRM.Service.IDAL
{
   public interface IOrdersDAL
   {
       string AddOrder(Order model, DataTable orderDetail, Boolean isSubmit);

       Order GetOrderById(int orderId, out DataTable orderDetail);

       Boolean UpdateOrder(Order model, DataTable orderDetail, Boolean isSubmit);

       DataTable GetOrdersByPage(string strWhere, string strOrderBy, int pageIndex, int pageSize,
                                           out int recordCount, out int pageCount);

       void Delete(int orderId);

       DataTable GetOrderDetail(int orderId);

       void Submit(int orderId,int status);
       DataTable GetOrderProcess(int orderId);

       DataTable GetOrdersToDo(int empId);

       void HandleOrder(int empId,int orderId,int status,string notes,int bhStep);
   }
}
